/**
 * Description: RegisterInfoService.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Mar 30, 2009 9:58:28 PM 李萌（neolimeng@gmail.com）created
 */
package org.paradise.dms.services;

import java.util.List;

import org.paradise.dms.pojo.RegisterInfo;
import org.springframework.stereotype.Service;

/**
 * Description: Copyright (c) 2008-2009 Neo. All Rights Reserved.
 * 
 * @version 1.0 Mar 30, 2009 9:58:28 PM 李萌（neolimeng@gmail.com）created
 */
@Service
public interface RegisterInfoService {
	/**
	 * 
	 * Description: Service-插入一条物品登记记录
	 * 
	 * @Version1.0 Mar 30, 2009 10:02:25 PM 李萌（neolimeng@gmail.com）创建
	 * @param registerinfo
	 * @return
	 */
	public boolean insertRegisterInfo(RegisterInfo registerinfo);

	/**
	 * 
	 * Description: Service-更新一条物品登记记录
	 * 
	 * @Version1.0 Mar 30, 2009 10:02:25 PM 李萌（neolimeng@gmail.com）创建
	 * @param registerinfo
	 * @return
	 */
	public boolean updateRegisterInfo(RegisterInfo registerinfo);

	/**
	 * 
	 * Description: Service-删除一条物品登记记录
	 * 
	 * @Version1.0 Mar 30, 2009 10:03:17 PM 李萌（neolimeng@gmail.com）创建
	 * @param registerinfoid
	 * @return
	 */
	public boolean deleteRegisterInfo(int registerinfoid);

	/**
	 * 
	 * Description: Service-取得一条物品登记记录
	 * 
	 * @Version1.0 Mar 30, 2009 10:03:46 PM 李萌（neolimeng@gmail.com）创建
	 * @param registerinfoid
	 * @return
	 */
	public RegisterInfo getRegisterInfo(int registerinfoid);

	/**
	 * 
	 * Description: Service-取得所有物品登记记录
	 * 
	 * @Version1.0 Mar 30, 2009 10:04:09 PM 李萌（neolimeng@gmail.com）创建
	 * @return
	 */
	public List<RegisterInfo> getAllRegisterInfo();
	/**
	 * 
	 * 
	 * Description:
	 * 设置归还时间。 
	 * @Version1.0 Apr 2, 2009 8:01:33 PM 李萌（neolimeng@gmail.com）创建
	 * @return
	 */
	public boolean setReturnTime(int registerinfoid);
	
	int getRows();
	
	List<RegisterInfo> listAllRegisterInfo(int pageSize,int startRow);
}
